#ifndef _AT24C02_H_
#define _AT24C02_H_

#include "stm32f10x.h"
#include "timer_delays.h"   //使用了延时函数
#include "bit_band.h"       //使用了位带
#include "usar_type_def.h"

//应答信号定义
#define ATK 0
#define NATK 1

void AT24C02_Init(void);//初始化SCL和SDA引脚
bool AT24C02_ReadByte(uint8_t addr, uint8_t *data); //读一个字节
bool AT24C02_WriteByte(uint8_t mem_addr, uint8_t data); //写一个字节


#endif /* _AT24C02_H_ */